package com.godfrey.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author godfrey
 * @since 2020-12-27
 */
public class Order implements Serializable {
    private static final long serialVersionUID = -5397628182599822017L;
    private Integer id;
    private String buyerName;
    private String buyerTel;
    private String address;
    private Date createDate;

    public Order() {
    }

    public Order(Integer id, String buyerName, String buyerTel, String address, Date createDate) {
        this.id = id;
        this.buyerName = buyerName;
        this.buyerTel = buyerTel;
        this.address = address;
        this.createDate = createDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public void setBuyerName(String buyerName) {
        this.buyerName = buyerName;
    }

    public String getBuyerTel() {
        return buyerTel;
    }

    public void setBuyerTel(String buyerTel) {
        this.buyerTel = buyerTel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", buyerName='" + buyerName + '\'' +
                ", buyerTel='" + buyerTel + '\'' +
                ", address='" + address + '\'' +
                ", createDate=" + createDate +
                '}';
    }
}